package com.liufh.feign;

import com.liufh.common.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: liufh
 * @create: 2022-01-25 17:24
 */
@FeignClient(name = "hw-service-code", fallback = CodeFallback.class, path = "/api/code")
public interface CodeServiceFeignClient {

    @PostMapping("/validate/{email}/{code}")
    public ResultData validate(@PathVariable("email") String email, @PathVariable("code") String code);

}
